package com.ziyear.common.enums;

/**
 * 功能描述 : 车厢类型
 *
 * @author Ziyear
 */
public enum SeatType implements Code {
    SHANGWU, YIDENG, ERDENG;

    @Override
    public String getCode() {
        return this.name();
    }

    public static SeatType getByCode(String code) {
        SeatType[] values = values();
        for (SeatType value : values) {
            if (value.codeEquals(code)) {
                return value;
            }
        }
        return null;
    }
}
